var GameOption = require("GameOption");

cc.Class({
    extends: cc.Component,

    properties: {
        Option: {
            default:null,
            type:GameOption
        },
        MapGrid:{
            default:null
        },
        CellType:{
            default:null
        }
    },

    onLoad () {
        this.MapGrid = new Array();
        for(var i = 0; i < this.Option.MapGridSize * 2 + 1; i++){
            this.MapGrid[i] = new Array();
            for(var j = 0; j < this.Option.MapGridSize * 2 + 1; j++){
                this.MapGrid[i][j] = null;
                //console.log(i + "," + j);
            }
        }
        this.CellType = new Array();
        for(var i = 0; i < this.Option.MapGridSize * 2 + 1; i++){
            this.CellType[i] = new Array();
            for(var j = 0; j < this.Option.MapGridSize * 2 + 1; j++){
                this.CellType[i][j] = null;
            }
        }
    },

});

//module.exports = Map;